set(ProjectName "WorldNetServerPlugin")

file(GLOB WorldNetServerPluginCC *.cc)
file(GLOB WorldNetServerPluginHH *.h)

add_library(WorldNetServerPlugin STATIC
	${WorldNetServerPluginCC}
	${WorldNetServerPluginHH})

add_dependencies(WorldNetServerPlugin Protocol)

if(NOT MSVC)
	target_link_libraries(WorldNetServerPlugin -static-libstdc++)
endif()
target_link_libraries(WorldNetServerPlugin Protocol)

add_definitions(-DELPP_NO_DEFAULT_LOG_FILE)

set_target_properties(WorldNetServerPlugin PROPERTIES OUTPUT_NAME_DEBUG "WorldNetServerPlugin")
set_target_properties(WorldNetServerPlugin PROPERTIES PREFIX "")
set_target_properties(WorldNetServerPlugin PROPERTIES 
	ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}
	LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})